//Put constants and enumeration here.
define({
  //response status
  responseStatus: {
    SUCCESS: 'success',
    FAILED: 'fail',
    TIMEOUT: 'timeout'
  },
  //operation
  operation: {
    todayTip: 'todayTip',
    tipDirectory: 'tipDirectory',
    categoryTips: 'categoryTips'
  },
  //response code
  responseCode: {
    SUCCESS: 0,
    HTTP_OK: 200,
    USER_NOT_EXIST: -1101,
    ACCOUNT_EXISTED: -1002,
    LOGIN_ANOTHER_DEVICE: -1302,
    PASSWORD_INVALID: -1102
  },
  //chart type
  chartType: {
    webProgress: 1,
    phoneProgress: 2,
    sessions: 3
  },
  pages: {
    guide: '#/guide',
    progress: '#/progress',
    settings: '#/settings',
    sessions: '#/session',
    tips: '#/tips',
    login: '#/login',
    dashboard: '#/dashboard'
  },
  validateType: {
    EMAIL: 2
  },
  errorMsg: {
    ACCOUNT_EXISTED: 'The account is existed.',
    ILLEGAL_INPUT: 'Illegal input.',
    USER_NOT_EXIST: 'User name or password incorrect.',
    LOGIN_ERROR: 'User email or password incorrect.',
    EMPTY_NAME_ERROR: 'Please enter you name.',
    EMPTY_CHILD_NAME_ERROR: "Please enter your child's name.",
    ILLEGAL_NAME_ERROR: 'Please enter a name that is between 1 and 16 characters long and only using alphanumeric characters.',
    ILLEGAL_CHILD_NAME_ERROR: 'Please enter a name between 1-16 characters.',
    PASSWORD_ERROR: 'Please enter a password that is between 6-16 characters and only uses alphanumeric characters.',
    AGE_ERROR: 'Please enter an age that is between 1 and 120.',
    EMPTY_EMAIL_ERROR: 'Please enter your email address.',
    ILLEGAL_EMAIL_ERROR: 'Please enter a valid email address.',
    PASSWORD_NOT_MATCH: 'Passwords do not match.',
    UPLOAD_AVATAR_ERROR: 'Upload avatar failed.',
    SEND_EMAIL: 'New password has been sent to your eamil.',
    NETWORK_ERROR: 'Network error',
    ACTIVE_CODE_NULL: 'Please input your active code.',
    ACTIVE_CODE_ERROR: 'Please verify and re-enter your code.',
    WEBVIEW_INIT_ERROR: 'Webview initiate failed',
    PURCHASE_SUCCESS: 'Successful purchase',
    PURCHASE_FAILED: 'Failed purchase'
  },
  userType: {
    PARENT: 2,
    CHILD: 1
  },
  requestParam: {
    defaultPassword: '111111'
  },
  clientType: {
    IOS: 0,
    ANDROID: 1
  },
  operation: {
    ADD: 'add',
    EDIT: 'edit',
    DEL: 'del',
    EDITLEVEL :'editLevel'
  }
});